package PTA.javaB;

import java.util.Scanner;

public class ex13 {
    public static void main(String[] args) {
Scanner sc= new Scanner(System.in);

    }
}
class Per {
    static String hostname;
     int id;
     String name;
     String phoneNumber;
     Address address;
    Per(String name, String phoneNumber, Address address){
        this.name = name;
        this.phoneNumber=phoneNumber;
        this.address= address;
    }

    public static String getHostname() {
        return hostname;
    }

    public static void setHostname(String hostname) {
        Per.hostname = hostname;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Per[" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", address='" + address + '\'' +
                ']';
    }

}
class Address{
    String country;
    String province;
    String city;
    String street;
    String zipcode;
    Address(String country, String province, String city, String street, String zipcode){
        this.country = country;
        this.province=province;
        this.city= city;
        this.street = street;
        this.zipcode =zipcode;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public String getZipcode() {
        return zipcode;
    }

    public void setZipcode(String zipcode) {
        this.zipcode = zipcode;
    }

    @Override
    public String toString() {
        return "Address[" +
                "country='" + country + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", street='" + street + '\'' +
                ", zipcode='" + zipcode + '\'' +
                ']';
    }
}